/**
 * 
 */
package com.feonix.common.view.progressbar;

import java.util.HashMap;
import java.util.Map;

/**
 * @CopyRight (c)1993-2017
 * @Project m-complat-common
 * @Comments 请输入该类的描述
 * @NameSpace com.feonix.common.view.progressbar
 * @Author Feonixzw
 * @CreateDate 2017年11月29日
 */
public class ProgressBarContent {

	private static final Map<String, Object> PROGRESSBAR_VALUES = new HashMap<String, Object>();

	public static void setProgressBarValue(String key, Object value) {
		PROGRESSBAR_VALUES.put(key, value);
	}

	public static Object getProgressBarValue(String key) {
		Object object = PROGRESSBAR_VALUES.get(key);
		if (object == null) {
			object = Integer.valueOf(0);
		}
		return object;
	}

	public static void clearContent() {
		PROGRESSBAR_VALUES.clear();
	}

	public static void clearValue(String key) {
		PROGRESSBAR_VALUES.remove(key);
	}

}
